add templates and routes