add page titles and combine data to single array