update for dialog box