[views] replace JSonController monkeypatching with an ajaxfunc [pending-review]