Added is_saved flag to NoteModel and changed the saving methodology