I think the modal should take the collection it will be creating a model for rather than the model itself as an argument. This allows the dialog to create the model in the collection only when the user actually click's save rather than potentially having rogue, unsaved models in the collection (which would then show up in the workspace). This also allows the dialog to be rendered once in the region of the template and this toggle can simply open the dialog rather than constantly re-rendering it.