function to  to make ajax call included