updated inventory.php