That should resolve both issues since it's the same thing. If not, you're going to need to clarify the main issue because using my code, none of my windows disappear or become unresponsive.