pop up a confirm dialog before leaving for 'select environments'