Enhanced to use ViewPager.