update dialog example