added onInventoryUpdate
added onInventoryUpdate