added saving of notes