implement a view for each page in documents.