added dynamic template switching