Small changes to gui, to fix closing of app, and made a call to
TotalCatch class functions