Minor edit to query widget