Adjust header and footer