implemented delete on click listener in DetailedNote.java