added update action for inventories