update layout