Added the console and click handlers