$scope.$apply();//update angular for some reason?