add query gui