add retry connection dialog and fix timeout