Improved paging helper to disable navigation if there is only one page and addend matching css rules