Fix AJAX sync on edit and delete actions