Changing t:template to t:header and t:footer