Un-break history
Added history pop- and push-state, making sure the back button works in the browser