add addVariable function back to embed ctrl