changed GUI from DISPOSE_ON_CLOSE to EXIT_ON_CLOSE