Added battery status handler