added state to url hash