Fixed issue with connection dialog on windows, changed layout manager