fixing header/footer formatting