Dialogs Class work