Add preventDefault to modal close button