Added code to persist editing of todos