added photos to index view