added routes and templates