Change name of extractPage to inferPage
Only redirect in Index.index if the pageNum is not 1