Use query string for state