Updated main div to new html element