add an attribute "isMain" to class Page