making GUI work