added code to embed on Embed button click