Add onItemSelected and onItemDeselected events.  Rename some variables for clarity.