transition working with script templates