add logic to Inventory UI