loading console.log on click