updates ajax request