Connect box added to the window