adde preventDefault to the click event