add dialog box asking whether to exit application