MyDialog class