Adding addnote fully working functionality