Replace with event slot using template.