Templatized the results view