fix click handler