update dialog and class