updates routes and templates for index/show