changed derivation of mQueryString in querywid