added support fo nested divs