refactoring send notification for edit