only show pagination links for next and prev
implements endless scrolling