Optional before_add hook to modify ajax data dynamically