add option to append templates to window