Initial setup of routes and templates