Enhance search feature #196 implemented

I've changed the code so that when searching for generators, they show all official generators first with a mustache next to it. #196 
This line if very long, move the logic to a if/else block and assign the result to a variable.