rebuild page class