Moving the Event Loop before render the app.