Changed MainActivity to extend FragmentActivity from support library.