update demo callbacks