@Override
	public void actionPerformed(ActionEvent e) {

		if(e.getSource().equals(view.getInputText())){
			view.getResults().clear();
			try{
				search(view.getInputText().getText());
			}
			catch(NullPointerException n){
				JOptionPane.showMessageDialog(view, "No Concerts found");
			}
		}
		else if(e.getActionCommand().equals("attend")){
			if(view.getResultList().getSelectedValue()==null){
				JOptionPane.showMessageDialog(view, "No Concert selected");
			}else{
				GeoEvent event = (GeoEvent)view.getResultList().getSelectedValue();

				attend(event.getEventUrl());
			}
		}
		else if(e.getActionCommand().equals("attended")){
			getAttended();
		}
		else if(e.getActionCommand().equals("recommend")){


			updateRecomendations();

		}
		else if(e.getActionCommand().equals("getRecArtist")){
			placeGeoElementOnScreen(eventList.get(indexForList));
		}
	}