fully tested ajax version for callOutAction