move template to a header