Add relations works ok now
Removed unused select2 dependency
Fixed cloning bug in changeType()