public void swipeNext() {
   if (wizardPager.getCurrentItem() < adapter.getCount() - 1) {
     int position = wizardPager.getCurrentItem() + 1;
     wizardPager.setCurrentItem(position);
     onPageSelected(position);
   }
 }
 @Override
 public void onPageSelected(int position) {
   btnBack.setText("Back");
   btnNext.setText("Next");
   btnBack.setVisibility(View.VISIBLE);
   btnNext.setVisibility(View.VISIBLE);
   if (position == 0) { // First item
     btnBack.setText("Cancel");
     btnNext.setVisibility(View.GONE);
     setTitle("Pick your onInput trigger");
   } else if (position == adapter.getCount() - 1) { // Last item
     setTitle("Name your event");
     btnNext.setText("Finish");
   } else {
     setTitle("Choose your terms");
   }
 }