Lazy event handler attachment