update layout and stylesheet