also, don't call that thing "fn", give it a real name so it's clear what it's for. And not "callback" but something like "onSelected" so that when it's encountered in the function body, it's obvious what it does.