Corrected pager previous and next page links for first and last page