Updated the way the GUI works with the scripts