Reformat code
Refactoring caching for widget search metod searchResultsByTerm