Updated click handler example