update config and layout