Fixing UI input for GTK