fix coding styles
remove event delegation

fire the custom event for every matching event