used model properly
used BarModel in view and tests