Added window & doc