add name and id to the getTemplates result