move all Swing dependencies to ui