[prompt] rewrite battery widget