add Migration ajax function