* corrected multi occurences of "gui" variable