replaces x for circle in view td.X
replaces $scope.total function with $watch function to simply logic for selectbytype total display in ProgramController