finish change the structure of ajax call