Add logClicks handler