update to add some example and support distinguish notAdd and notEdit