Small update for Dialogs. Now it is possible to
TODO: need more components-oriented implementation.