Show connection state in status bar

sort out namespace issue