Use tmpWindow and hide on close