Handle with change-abandoned and change-restored events

* Please help review and give some advice~ thanks