creating routes and templates for routes