Made DialogManager chainable.