allowed for list of templates and template attributes also fixed up the preview section to work again