beatify header and footer.