refactored views to use view helper methods