Why the Page title is not updating?