New methods getNextpage and getPreviousPage