Update widget embed logic.