rewrites BatterDashWidget to fix #42 (squashed)

This is the squashed version of PR #46