added reconnect and display of connection status