updated dialog management