kevins's GUI code