fixing creation of child div