Changed hash urls to history.pushstate and window.popstate style