removed unnecessary buildflags and fixed a bug in the gui