Created window command toggle button to control the quit confirmation dialog