event controlled added (document and window)