reset the data for the todo in order to make the delete working