Added save many-to-many
Fixed templates