Set the total in the model when the text field value changes.