modified event listener for pc