updated code in todomvc