Changes to class MyMainDialog