set data in reset before triggering deleted and changed events