modifying todolist controller