signal-slot interaction between GUI and logic