Also check if query string has changed in onChange()