add onChnage hook for Editor