react to highlight and select events