Update new window for variable script, minor fixes