GUI now works properly