@WIP add AJAX callback and test for logic update #3951

**WORK IN PROGRESS DO NOT MERGE**

#3951