GUI and main.