Various rendering fixes and tweaks for battery gauge and popup panel