fix UI code not running on Swing thread in 2 cases (init, switch wallet)