update config and delete unused layout