render navigation and header in the gallery, handle navigation events within the view