Revert "new Dialog"

This reverts commit dfc3340eec8e9d6f0dd5dcbb75a147e8e96c9548.