redesigned the Query tab