Add selection handler.