Change the FragmentStatePagerAdapter for the FragmentPagerAdapter.

Separated the Adapter from the MainActivity.

Some improvements on the menu.