refactored some code into gui.busy_dialog method