Refactor of  scripting begun and Form changed