added preventDefault to overlay click