Added autocompletion support to query widget.