added confirm quit dialog