update content and copy styles