add docEvents winEvents