adjust dom structure