Changed search from FragmentPagerAdapter to FragmentStatePagerAdapter, allowing search to delete old fragments when a new search starts