add updateTotalPrice after adding the item