remove redundant code when the admin controller was created
fix delete inventory item to reduce the count to the total number of this item in the cart