updated click event listener