change header and footer with last template