GUI is half-working