use a toggle window
auto quit when without other window