When you say that you rewrote the init function, did you overwrite it? If so, it should use the same one. You can certainly rename the function and then call the new function name in the callback instead. The fact that MATLAB complains about not finding the function seems to suggest that your helper function is not on the path. Did you run the model from where you saved those files?