update the header