total price gets updated in real time