update layout structure and styles