previous page and next page link partially functional