Hide/Show logic of main fragments.