Refine header & footer