create new function(new note with an attachment)