public void actionPerformed(ActionEvent e){
			
			String action = e.getActionCommand();
			if(action.equals("Add photo")){
				popup = new newPhotoPopUp(PhotosScreen.this.control,PhotosScreen.this,PhotosScreen.this.album);
				popup.setVisible(true);
				setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
			}
			
			if(action.equals("Edit")){
				for(PhotoInfo panel:PhotosScreen.this.photopanels){
					panel.showHideDeleteBtn();
				}
			}
			
			if(action.equals("Back")){
				try {
					albumsScreen.reDrawAlbums(PhotosScreen.this.control);
				} catch (Exception e1) {
					// TODO Auto-generated catch block
					e1.printStackTrace();
				}
				if(albumInfo==null){
					PhotosScreen.this.albumsScreen.setVisible(true);
					PhotosScreen.this.setVisible(false);
				}
				else{
				PhotosScreen.this.albumInfo.showAlbumsScreen();
				PhotosScreen.this.setVisible(false);
				}
			}
			
			if(action.equals("Slide Show")){
				if(!PhotosScreen.this.search){
					PhotosScreen.this.slideShow = new SlideShow(PhotosScreen.this.control,PhotosScreen.this, PhotosScreen.this.photopanels);
					PhotosScreen.this.slideShow.setVisible(true);
					PhotosScreen.this.setVisible(false);
				}
				else{
					PhotosScreen.this.slideShow = new SlideShow(PhotosScreen.this.control,PhotosScreen.this.photosSearchResult,PhotosScreen.this);
					PhotosScreen.this.slideShow.setVisible(true);
					PhotosScreen.this.setVisible(false);
				}
			}
			
			if(action.equals("make album")){
				PhotosScreen.this.makeAlbumPopUp = new makeAlbumPopUp(PhotosScreen.this,PhotosScreen.this.control);
				PhotosScreen.this.makeAlbumPopUp.setVisible(true);
			}

			
		}