cleaned up the MainFrame.java file a bit.