store and load state in querystring hash