discovered ng-options and custom filters; code now 1/5th size