Create 'common interface' with Application::run() which waits until the gui thread has finished before running again. If one wants to do multithreaded above the application use 'run_in_thread'