Refactored main controller and recipe list controller so that the logic for displaying search results is self-contained in the recipe list component