couple fixes for updating page url in wp