Improve save query UI

* Disable 'load' button when there's nothing to load
* Make the Cancel button work as intended