public void actionPerformed(ActionEvent e){
				
				String option = e.getActionCommand();
				
				if(option.equals("back")){
					PhotoDisplay.this.setVisible(false);
					PhotoDisplay.this.photosScreen.setVisible(true);
				}
				else if(option.equals("move photo")){
					Hashtable<String,Album> albumsHT = control.listAlbums();
					String[] albums = new String[albumsHT.size()];
					int i=0;
					for(Album album:albumsHT.values()){
						albums[i] = album.getAlbumName();
						i++;
					}
					PhotoDisplay.this.movePopUp = new movePhotoPopUp(albums, PhotoDisplay.this);
					PhotoDisplay.this.movePopUp.setVisible(true);					
					
				}
				else if(option.equals("edit")){
					editBtn.setIcon(new ImageIcon("resources/saveUP.jpg"));
					editBtn.setPressedIcon(new ImageIcon("resources/saveDN.jpg"));
					editBtn.setActionCommand("save");
					
					captionTxtF.setBorder(BorderFactory.createMatteBorder(1,1,1,1,Color.red));
					captionTxtF.setEditable(true);
					captionTxtF.setOpaque(true);
					captionTxtF.setForeground(Color.black);
					
					buttons = new JPanel();
					buttons.setOpaque(false);
					buttons.setLayout(new FlowLayout());
					
					addTagBtn = new ImageButton(new ImageIcon("resources/addTagsUP.jpg"));
					addTagBtn.setPressedIcon(new ImageIcon("resources/addTagsDN.jpg"));
					addTagBtn.setAlignmentX(Component.RIGHT_ALIGNMENT);
					addTagBtn.setActionCommand("add Tags");
					addTagBtn.addActionListener(ol);
					
					removeTagBtn = new ImageButton(new ImageIcon("resources/removeTagUP.jpg"));
					removeTagBtn.setPressedIcon(new ImageIcon("resources/removeTagDN.jpg"));
					removeTagBtn.setAlignmentX(Component.LEFT_ALIGNMENT);
					removeTagBtn.setActionCommand("remove Tag");
					removeTagBtn.addActionListener(ol);
					
					buttons.add(removeTagBtn);
					buttons.add(addTagBtn);
					
					
					tagsPanel.add(buttons);
					tagsPanel.revalidate();
					tagsPanel.repaint();
					buttonsPanel.revalidate();
					buttonsPanel.repaint();				
				}
				else if(option.equals("save")){
					save();
				}
				else if(option.equals("add Tags")){
					PhotoDisplay.this.tagsPopUp = new addTagsPopUp(PhotoDisplay.this.control, PhotoDisplay.this, PhotoDisplay.this.photo.getFilename());
					PhotoDisplay.this.tagsPopUp.setVisible(true);
				}
				else if(option.equals("remove Tag")){
					String selected = (String) tagList.getSelectedValue();
					if(selected!=null&&!selected.equals("")){
						String[] split1= new String[2];
						split1= selected.split(":");
						String type = split1[0];
						String value = split1[1];
						value = value.substring(1);
						value = value.substring(0, value.length()-1);
						control.deleteTag(PhotoDisplay.this.photo.getFilename(), type, value);
						tagsModel.removeElement(selected);
						filltagsModel();
						tagList.revalidate();
						tagList.repaint();
						tagListSP.revalidate();
						tagListSP.repaint();
						tagsPanel.revalidate();
						tagsPanel.repaint();
						buttonsPanel.revalidate();
						buttonsPanel.repaint();
						
					}
					else{
						final JFrame error = new JFrame("Important Message!");
						JOptionPane.showMessageDialog(error, "No Tag Selected.");
					}
				}
				
				
			}