onSelect callback check update