add document for method prevPage and nextPage