added pageCounter