Update titles for all pages and add dynamic titles.