using correct method to destroy nodes; removing listeners causing memory leaks