Migrate major controllers to appframework