Keep the fragment states when switching.