add helper & rename control to main & add DOMEvent manage

add helper & rename control to main & add DOMEvent manage