Refactored the InventoryGUI slightly.