Updating document header