Removed deprecated event listener