rename Config to Embed and move to embed component
move embed logic to model