enabled red X to quit