Move some functions into a new MainController
fix back to index link in layout-admin
give the routes names
minor changes to admin views
resource controller for Show