Added removeTodo function call for each item in list passing $index