change the url using window.pushState