view helpers refactor and simplification