modify MyDialog interface by JackeyFoo @ 20130407-15:44