Adds template for events.