added the amOnPagesPage method