Add ajax call completion wait check.