support for deeper nested pages (below two levels)