improved ajax/angular interactions