dialogs is now class method