Add page state for the sub-pages.