save state data in url hash