move template to plugin