remove events before template is fetched