refactor(template): events