add templates and models