Added custom events for adding new notes and editing notes