update battery level as it changes