dialog module and demo