improved nested page classes