We should return a dict here instead of HTTPFound since we now deal with Ajax request.