def METHOD_NAME(self, note_index, note_content):
    self.notes.data[note_index]['content'] = note_content
    data = self.notes.data
    self.notes.data = []
    self.notes.data = data
    self.save_notes()
    self.refresh_notes()