Routing, CSS, template and DB code to allow previous/next navigation on the viewer.