Debugging click handler