todo list common update in main