Adds titles to each page.