changing the template now changes the template preview and the templates in the controller