Changed the way pagerViewer is updated