add click event handler