Kill the bubbling on the click event (use stopPropagation)