events now apply to rendered template