Add onSave callback, called when notes are saved or deleted