add page class info and calculation