Update query string from view states