This function is an event handler that is called every time an item with the specified ID is modified.