fire events on template updates