Remove function for show segments, done the angular way.