maintain state with query string variable