added change cursor function to InventoryState