allow a 'container' option, so we can detect appearing in the container, not only in the window