changed type of ajax call