updates html structure