select a template on setTemplates, if no is selected