Added the ability to specify target element for events