Fixes to Inventory to process using AJAX and add a slight delay to processing to avoid not authorizaed error.