Moved server connections to main thread to avoid unnecessary manual updates of the views