update hearder and footer