update the title and the heading.