Fixed the gui warnings and all warnings. No added code.