created actions and views for galleryController