update content and layout of page