ajax put request implemented