query pane refactoring step 1

The listener does not depend on UI components and can therefore be applied in the constructor if you decouple the the text property of `ta`.