Connect segment control with onTap