private void btnSaveActionPerformed(ActionEvent evt) {
		
		// validate the input data
		if(validateFields()) {
			
			// if action mode is 'add'
			if(actionMode.equals("add")){
				// call insert function 
				InsertPackageProductsSuppliers();
				
				// if action mode is 'mod'
			} else if (actionMode.equals("mod")) {
				// call update function
				UpdatePackageProductsSuppliers();
			}
			
			// Update the parent.
			parent.populatePackage(packageID);
			
			//dispose current dialog
			dispose();
		}
		
	}