fix username dialog autoclose and username list and disconnection problem