Added index argument to list item constructor and update function.