edit mode update