Writing a method to create a note when clicking on Add a Note