working with divs and templates