fix header and footer