building argument overwriteDemand for Ajax call improved: we now use two methods for getting the demand from settings and overwriting it with the overwriteDemand (similar to the controller method)