update with ajax requests for edit mode