passed viewPagerNum to MainActivity