update UI after successful edit