Updated the Query widget