Update DialogManager.java