added page indexing