added a lot of template events