Change pattern to be more like viewpager example.

Make the TabsAdapter do all the heavy lifting as displayed in the
android developer's viewpager example
https://developer.android.com/reference/android/support/v4/view/ViewPager.html.