removing event listener that was causing leaks