code cleanup
BugFix: on data change, check whether the attached dataset is still there
BugFix: if no dataset is given, don't load anything into the selects
Merge branch 'origin/piechart_experimental'