Changed onSelChanged to better named functions