A few slight changes to modalFactory/CudService to get the modals working