fixing the url not updating in browser.