found and fixed bug in setupDivs