update ajax request to use json.data