Todolist example working with edit function.