add click handler for inventory item