Fix bug that causes bar chart elements to be removed
Tab control
Fix memory leaks
Improvments: Don't call redraw elements too often
Minor speed improvments