remove the templates when the models change