refactoring on jrm show search results