update layout and styles