Add confirm listener.