Added support for template triggers, added TreeViewWindow test window