Changing from attr_accessor to view