add sold out logic to update product value and also change view