rearrange document header printing