Added battery alert script and fixed resizing windows back to original