Reworked pagination

Updated code for starting higher than page 1,
what pages are shown,
how currentPage and firstPage(now startPage) are used