Updated coding style
Ensured that the search result is render fist, so static varibles will exists for the other elements on the page