create select_event method in UI