re-factoring view helpers