BugFix: density instead of barchart
code cleanup: remove unneeded refresh, as there wont be a time (anymore) when both are displayed at the same time
improve selection speed by using "caches"