added ctr+c support in terminal mode
fixed some issues with the gui