fixed displayedPages and prev & next text