scottw's onSelect fix helped me quite a bit! Thanks scottw!