added some inventory management to delete and add inventory