Code clean-up.

Made UI initialization logic occur in Swing UI thread.