cleanup gui.go