Organised code into partials, added a 'nothing found' message if a search returns no results.