implement onSaveMyData for tab switch