clear selection should also clear start and end segment