Add logic to set paging button status.