modify to refine handling page url and title