Refactor access to current user in view scripts to view helper