adds title to each page