persisting the data on edited todo items