Created select/deselect enclosing scope.