refactored to be more oop. fixed title display now uses ng-bind