added routing for templates