better header/footer positioning