implement todolist in view