implementing connection status