Moved the actual header draw code into the draw header function