clear the selection when going in and out of selection_mode