close dialog
removed unneded update call