fix event delegation and setting default element
add default el from str and default attrs from {}