move open popup from mainActivity to ConnectActivity