removed static reference to the window