replaced HttpResponse with render on index view