add routes and base templates