open single display connection in main thread