reorganized the dialog model and code
22 files changed