@Override
		public void actionPerformed(ActionEvent arg0) {
			if (arg0.getSource() == backMenuItem) //back button clicked
			{
				back();
			}
			
			else if (arg0.getSource() == deleteMenuItem) //delete button clicked
			{
				String s = hoverSlice.toString(); //get info from the slice that was clicked
				String nodePath = path + "\\" + s.substring(s.indexOf("(")+1, s.lastIndexOf(")")); //concatenate parent path and the node name(relative path) to get the complete file path
				int index = VisualHDD.getTreeIndex(nodePath.substring(0, 2)); //ask VisualHDD for the index of the DirectoryTree that contains the node with the abobe path
				DirectoryTree tree = VisualHDD.getTree(index); //ask VisualHDD for the tree corresponding with the index above
				if (JOptionPane.showConfirmDialog(null, "Are you sure you want to delete " + nodePath + "?", "Confirm", JOptionPane.YES_NO_OPTION) == JOptionPane.OK_OPTION) //user confirmation
				{
					tree.delete(nodePath); //let the tree delete the node and file
					update(parentNode); //update the graph to reflect the change
				}
			}
		}