Show first and last page in pagination links

This commit provide links to the first and last page.