link the template with the action event