popup window rendering optimization. Bluetooth battery sensors fixes (untested)