Divide ajax search and ajax load, add res format method