fixes header and footer stuff