rearrange layout, make headers not overlapped by header