remove selection when switching selection mode