update the header/footer