Preparing ajax_edit.
Merging UI of ajax_add and ajax_edit.
Merging ajax_affect UI.
Merge ajax_affect UI.