modified the route to templates