BUG: Query button event causes infinite button creation

Small visual/functional defect when you click the "Query" button. Click the query button a few times and you'll see the UI defect attached.
![bug](https://f.cloud.github.com/assets/489331/300528/513334fa-959b-11e2-9704-92ad44683406.png)