connected gui input with cli