FragmentTransaction in separate function