Add query window