fixing variables for edit ajax