Refactor ViewHelper