updating  element from dialog