changing how events are attached