save tab when switching orientation.