Moved ui.template to template.