still messing around trying to make javascript ajax responsesnot fire off multiple times
Fixed up ajax calls in stateChanges