add the function that when switch the fragment ,the fragment own can save its status