implemented a battery status indicator.