added initial dialog module logic
initial logic to use dialog module