Adding logging to click