Revert "added dialog class"

This reverts commit ef0b6c916efd93f439fd9106f0f22babdd3b046a.