separating query to own thread

+selecting added tab in closeableTabbedPane