Only color if too many results. Merge html elements to improve performance