updates of error to exit and open and new graphics