trying fix click event handler