adding attr_accessor to products controller