debugging click event