Add preventDefault to Ci take sample button.