Refactor UI code, add more logging
Fix DesktopEx code that was running in the EDT