Moved removal of el to dispose method, and kept detach in exit