Disables previous page link on first page and disabled next page link on last page.