private void generateAlbumList(DefaultListModel model, JList list) {
		model.removeAllElements();
		ArrayList<Album> albumslist = GuiView.control.listAlbums();
		if (albumslist != null){
			int count = 1;
			for (int y = 0; y < albumslist.size(); y++) {
				if (albumslist.get(y).getPhotoList().size() > 0) {
					model.add(list.getModel().getSize(), " " + count + ". Album Name: '" + albumslist.get(y).getName() + "' - number of photos: " + albumslist.get(y).getPhotoList().size()+", "+ control.getStartDate(albumslist.get(y)) +" - "+ control.getEndDate(albumslist.get(y)));
					count++;
					//System.out.println(albumslist.get(y).getName() + " number of photos: " + albumslist.get(y).getPhotoList().size()+", "+ control.getStartDate(albumslist.get(y)) +" - "+ control.getEndDate(albumslist.get(y)));
				}
				else {
					model.add(list.getModel().getSize(), " " + count + ". Album Name: '" + albumslist.get(y).getName() + "' - number of photos:0"+", "+ "MM/DD/YYYY-HH:MM:SS" + " - " +"MM/DD/YYYY-HH:MM:SS");
					count++;
					//System.out.println(albumslist.get(y).getName() + " number of photos:0"+", "+ "MM/DD/YYYY-HH:MM:SS" + " - " +"MM/DD/YYYY-HH:MM:SS");
				}
			}
		}
	}