adding ajax request for saving requets