cleaning up the code a bit and resolved issue with loading data grid UUIDs before export