add log-to-console on click