Implemented some base logic for Dialogs structure.