override onSaveInstanceState to save the current mCurrentIndex