Add visible log and click handlers for debugging.