add segment ui support