fixed newNote to return note id on success