Revert "Custom dialog"

This reverts commit f42d8a686a8d2d4d26bd467894b608f86474d1f7.