Various fixes

* Use wait cursor when running other threads
* Remove sleeping
* Use thread for each button