this is the part the ng-model helped with before.