Migrate to Appframework

Migrate all ajax to appframework