changing the derivation of mQueryString in querywid