revise dom structure