Moved search form and loop to partials