rebuild DOM when orientation change