Update changing mode when all items have been removed
Add callback to loadInventory function