debugged new GUI