Adds titles to pages