View access in controller