added connection status with red and green led