trying to get the gui to work. not quite there