can now dynamically add templates