fix missing require
fix missing ajax call