added comments and comment the ajax call function