Added query button to enable queryPanel.