fix ajax edit