use sane IDs in tree view (with backwards compatibility)
Merge pull request #271 from Kunstmaan/fix-treeview

use sane IDs in tree view (with backwards compatibility)