modified event
fixed enter/leave event delegation bug