moved layout config to a separate mode