ViewPager template setup