Revert "dialogs logic"

This reverts commit 9f7be6277341e08eed35703bbc494d2267100101.