added basic functionality, no pagination on the photo details pages