added context_instance=RequestContext(request) to views.py