Issue 1740 copy design template creates an advanced template

fixed and tested the copy design template issue as well the script issue while loading design template through edit.

Please check.