change config and layouts according to the compress layout