adjust header and footer