Minor changes. Removed create param and use object instead to distingiush form creating and editing note.