Clean up page header code