Add onSelect function ( options )