call onSelect-callback after selection