Updating main document headers