fix nasty bug where event handlers would disappear after a view is rerendered into the DOM