private void modifyPanelInit(){
		modifyPanel = new JPanel();
		
		generator.createRigidSpace(modifyPanel, 15);
		
		//Add a table of all the equipment to the panel
		final JTable allEquipment = new JTable(allEquipmentModel.getTableModel(5));
		allEquipment.removeColumn(allEquipment.getColumn("ID Number"));
		allEquipment.setPreferredScrollableViewportSize(new Dimension(450, 70));
		allEquipment.setFillsViewportHeight(true);
		allEquipment.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
		JScrollPane scroll = new JScrollPane(allEquipment);
		scroll.setMaximumSize(new Dimension(TableWidth, 300));
		modifyPanel.add(scroll);   
		
		//Add the text and text fields to the panel
		JLabel employeeChoiceLabel = generator.createLabel(modifyPanel, "Please choose a piece of equipment to modify", "");
		
		generator.createRigidSpace(modifyPanel, 10);
		JLabel nameLabel = generator.createLabel(modifyPanel, "Name");
		final JTextField nameInput = generator.createTextField(modifyPanel, "");
		
		JLabel quantityLabel = generator.createLabel(modifyPanel, "Quantity");	
		final JTextField quantityInput = generator.createTextField(modifyPanel, "");
		
		
		JLabel rentalLabel = generator.createLabel(modifyPanel, "Rental Cost Per Hour");	
		final JTextField rentalInput = generator.createTextField(modifyPanel, "");
		
		final JLabel resultLabel = generator.createLabel(modifyPanel, " ");	
		
		//Add the modify and back button to the panel
		JButton updateButton = generator.createButton(modifyPanel, "Update", 5);
		JButton backButton = generator.createButton(modifyPanel, "Back", mainViewName, 5);

	    modifyPanel.setLayout(new BoxLayout(modifyPanel, BoxLayout.Y_AXIS));	
		
	    //If the Modify button was pressed
		updateButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e){
				boolean result = false;
				EquipmentClass modifiedEquipment;
				int quantity = 0;
				double rental = 0;
				//Quick Input test
				if(nameInput.getText().matches("") || quantityInput.getText().matches("") || rentalInput.getText().matches("")){
					resultLabel.setText("Please fill out the empty fields");
					return;
				}
				if(allEquipment.getSelectedRow() == -1){
	            	resultLabel.setText("Please select a row, Please try again..."); 
	            	return;
	            }
				try {
					quantity = Integer.parseInt(quantityInput.getText());
					rental = Double.parseDouble(rentalInput.getText());
				} catch (NumberFormatException e1) {
					resultLabel.setText("Error quantity/rental MUST be numbers");
					return;
				}
				//End of Input tests
				
				//Create a new equipmentclass with the modified data
	            modifiedEquipment = new EquipmentClass(nameInput.getText().toLowerCase(), quantity, rental);
	            result = modifiedEquipment.verifyInput();
	            if(!result){
	            	resultLabel.setText("Invalid Input");
	            	return;
	            }
	            
	            //Modify the equipment in the DB
	            result = EquipmentControllerClass.getInstance().modifyEquipment(modifiedEquipment);
	            if(!result){
	            	resultLabel.setText("Equipment didn't update correctly, please try again");
	            } else{
	            	//Report success and modify the table
	            	resultLabel.setText("Equipment successfully updated!");
	            	Object[] modifiedRow = {modifiedEquipment.getEquipmentId(), modifiedEquipment.getName(), modifiedEquipment.getQuantity(), modifiedEquipment.getRentalCost()};
	            	allEquipmentModel.modifyData(modifiedRow, allEquipment.getSelectedRow());
					nameInput.setText("");
					quantityInput.setText("");
					rentalInput.setText("");
	            }
			}
		});
		
		//Change text field data based on selected row in the table
		ListSelectionModel rowSM = allEquipment.getSelectionModel();
		rowSM.addListSelectionListener(new ListSelectionListener() {
		    @Override
			public void valueChanged(ListSelectionEvent arg0) {
				Object[] data = allEquipmentModel.getData(allEquipment.getSelectedRow());
				
				nameInput.setText((String)data[1]);
				quantityInput.setText(String.valueOf((int)data[2]));
				rentalInput.setText(String.valueOf((double)data[3]));
			}
		});
	}