Added full functionality, and previous/next on photo show page