use ViewPager for tab switch