Generalized usage

more general usage for the dialog creation through pub/sub