Changed public interface of MainFrame. Now all UI is created in TestMain class.