make template event work for all styles