Add ajax processing for edit element
Handling error from element editing