hide pagination button if end reached, show correct pagination end, fixes #33