Moving search result cards to a dedicated template, and fixing bugs