need  to  rewrite  mydialog