update layout, add some config