Moved query for orderHeader out a bit as it is used in more than the block where it was queried