Switched pushState to replaceState