update dialog form