implemented on clicklistener for the save button in AddNote.java