Using Mustache for the main Search panel. Refactored a bit of the code so no duplications are happening.