added connection status icon and fixed some stuff.