unify dialogs creation