adding only classes and pages