Add templates and update router.