Fix header positioning and resizing