update layout.