enabled buttons in query editor