Add support for nested pages