convert multiple ajax to single ajax call.