Authentication added for public pages
adding history
Refactoring GalleryRenderer