fix usage of bound onSelect handler
commenting highlighter for clarity