added ajax function and put request for quote update