move template to front-end