Update tab selected state on swipe