work in progress on moving view code into separate functions and on creating additional helper functions for creating csv data structure for use with export buttons
showing nav problem
Fix left nav accordion.