Split ajax to 3 Class