Some upgrades on script editor