gui quits properly now and removed a print statement