Modified PagerAdapter to cope with custom Fragment