update the note model and implement the update method