create new query window if closed