Added preventDefault to modal close button