change mode on template
using code block