added embed widget functionality