added support fo nested injected divs