move template to html page