Use ajax when update action.