Add a DOM listener object creation to properly dispose of dom events.