added bar_view and tests