getAllTemplates was edited