replace hacky $parent.model with data.model namespacing convenction