adjust function index on view advertising in called modal resource