Only show export button when there's content to export
- made TemplateView a ListView
- removed unneeded output_tbl2 & output_tbl3