Change the fragments and continue to the new activity.