@Override
 public void onPageSelected(int position) {
   BaseFragment fragment = FragmentFactory.createFragment(position);
   fragment.show();
 }
 @Override
 public Fragment getItem(int position) {
   return FragmentFactory.createFragment(position);
 }