added mechanism to spawn sub-pages