write results view template