update config and the layout