add global variable pagerIndex and add Actionbar View in onResume