change how class pages are generated