update header and footer tpl once