adds titles to pages