Removing the link on pagination at end or current