started working on pop-up dialog

added: new nested class MyDialog

fixed: exception catching