added quit confirm dialog to testing and training