modifying template controller to resolve issue with new template view