add event dispatcher document
fixed #3283, add document and delete temp file