BatteryMonitor: Made the window variable an instance variable
or else it just doesn't work
TabExample: Made the window variable an instance variable
or else it won't work
Prototype: Made the window variable an instance variable
PrototypeMail: Make the window variable an instance variable