change callback to assign delete event listener after node has been created