add preventDefault to events