Just before changing to PagerAdapter