Pagination tag reworked