Check for last page on index

Check for last page on index