adding document affects event