added onInventoryUpdate