rm hammer, fixed cpa, pa, and sort calls one ajax instead of a foreach