update currentPage global after page change
build year switch view and switch years