pagination and link rendering tweeks