Fixed a bug with favorites, Creates the filtering mechanism for products#index