changes to NoteFragment class