fix event listener for click