added routes and template views