tweak toggleView
Add bar graph abstraction.