Fixing edit with Ajax