updated to server change sending json in request.data