add ajax function and params