implemented cancel button in AddNote.java