removeTemplateInstance added