Added an event handler for selecting from TypeCB