document We did need to utilize angular.bind to address losing context when the finxtion is called