Revised Fragments and fragment switching in main