@Override
		public void actionPerformed(ActionEvent e) {
			this.addObserver(searchInstance);
			JButton tempButton = (JButton) e.getSource();
			if(e.getActionCommand().equals("from")){
				CreateGUI.returnInstance().setTextInFromTextField(tempButton.getText());
				for (Entry<String, MyEdge> entry : possibleFromEdges.entrySet()) {
					if(entry.getKey().toString().equals(CreateGUI.returnInstance().getTextFromFromTextField())){
						guiM.nodeFromKDV = entry.getValue().getFromNode().getKDV();
					}
				}
				dispose();

			} else if(e.getActionCommand().equals("to")){
				CreateGUI.returnInstance().setTextInToTextField(tempButton.getText());
				for (Entry<String, MyEdge> entry : possibleToEdges.entrySet()) {
					if(entry.getKey().toString().equals(CreateGUI.returnInstance().getTextFromToTextField())){
						guiM.nodeToKDV = ((MyEdge) entry.getValue()).getToNode().getKDV();
					}
				}
				dispose();
			}
			setChanged();
			notifyObservers(from);
		}