Added custom onItemSelect handler