removed unused code
remember which mode map/charts views are in