move template from out of the root