update to-do list code