Bug fix, when returning ajax RequestContext is needed for the csrf_token
Improving some html and js