Change view helper functions to model classmethods
Replace view helper functions with  new model classmethods