make the browser history work as it should