added loadTemplates()