add some template events