fixed memory leak of UIButton and the dom being deallocated too early