Added dynamic linking for brand icon to traverse back to datasets.
Cleaned some old code