added a way to select segments to delete