added Documention for onSelect