Styled search result box. Refactored some code.
Resolved merge conflicts.