refactored all of the view helpers into the models