update layout and appearance