Migrate from master the ajax functionality.