The GUI is not working and showing error messages