updated low battery indicator code