reverting to original working code then added only necessary div elements