routes and template modifications