results.html template added and updated the corrosponding function in the view file