add routes and template