Modify header and footer template