Modify how title is set for pages