added some views logic to the total price formatting.