working on dialog manager