failed to implement the onselect event handler